import { VagueOject, UrlModule, appUrl } from "@/types/common";

interface ConfigType {
    baseUrl: UrlModule<appUrl>
    apiList: UrlModule<VagueOject>
}

export const config: ConfigType = {
    baseUrl: {
        app: {
            devBaseUrl: "http://127.0.0.1:3000/app",
            prodBaseUrl: "http://127.0.0.1:3000/api/json/prod",
        },
        admin: {
            devBaseUrl: "http://127.0.0.1:3030",
            prodBaseUrl: "http://127.0.0.1:3000/api/json/prod",
        }
    },
    apiList: {
        app: {
            articleList: "/article/articleList",
            articleInfo: "/article/info",
            pushComment: "/article/push_comment",
            login:"/user/login",//登录
            info:"/user/info",
            add:"/user/add",//注册
            linkList:"/link/list"
            
        },
        admin: {}
    }
}